<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/14
 * Time: 11:13
 */

namespace app\api\model;


use think\Model;

class ShopInfo extends Model
{
    public function getImgAttr($value,$data){
        $finalUrl = $value;
        if($data['img_origin'] == 0){
            $finalUrl = config('setting.img_prefix').$value;
        }
        return $finalUrl;
    }
}